package com.yurun.common;

import lombok.Data;

/**
 * @author 宫静雨
 */
@Data
public class Result {

    private String retcode;
    private String retinfo;
    private Object data;

    public static Result res(String retcode, String retinfo) {
        final Result r = new Result();
        r.setRetcode(retcode);
        r.setRetinfo(retinfo);
        return r;
    }

    public Result setData(Object data) {
        this.data = data;
        return this;
    }
}